import ajax from './ajax'

const BASE = '/api'

// 请求Home页三保
export const reqGuarantee = () => ajax('/guarantee')
// 请求Home页分类
export const reqCategory = () => ajax('/category')
// 请求Category页分类
export const reqCateList = () => ajax('/cateList')
// 请求Subcategories
export const reqSubCateList = () => ajax('/subcates')

// 请求搜索结果
export const reqSearch = (keywordPrefix) => ajax(BASE+'/xhr/search/searchAutoComplete.json',{keywordPrefix},)

// 请求默认显示结果
export const reqInit = () => ajax(BASE+'/xhr/search/init.json')

// 请求“识物”页 - “发现” 页的导航tab
export const reqTabs = () => ajax(BASE+'/topic/v1/find/getTabs.json')

// 请求“识物”-“Discover"里“推荐”的数据
export const reqDisRec = () => ajax(BASE+'/topic/v1/find/recManual.json')

